<div ng-controller="TongjiCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'店铺报表统计'| translate}}</li>
        <li>{{'List'|translate}}
            <!-- <a href="#/tingclass/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a> -->
        </li>
    </ul>
    <tongji-tab ng-model="chosedType" click-tab="getlist(1)"></tongji-tab>
    <div ng-show = "chosedType == 'payment'">
        <table class="sui-table table-bordered" >
            <thead>
                <tr>
                    <th>{{'店铺id'|translate}}</th>
                    <th>{{'店铺名称'|translate}}</th>
                    <th>{{'总支付笔数'|translate}}</th>
                    <th>{{'现金支付笔数'|translate}}</th>
                    <th>{{'余额支付笔数'|translate}}</th>
                    <th>{{'总支付金额'|translate}}</th>
                    <th>{{'余额支付金额'|translate}}</th>
                    <th>{{'现金支付金额'|translate}}</th>
                    <th>{{'时间'|translate}}</th>
                    <th>{{'operation'|translate}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="list in paymentlist">
                    <td>{{list.store_id}}</td>
                    <td>
                    <store-list  ng-model="list.store_id" stype ='1'></store-list></td>
                    <td>{{list.num}}</td>
                    <td>{{list.cash_num}}</td>
                    <td>{{list.balance_num}}</td>
                    <td>{{list.money}}</td>
                    <td>{{list.balance_money}}</td>
                    <td>{{list.cash_money}}</td>
                    <td>{{list.date}}</td>
                    <td>
                      <!--   <a href=" #/tingclass/add?ting_class_id={{list.ting_class_id}} " class="sui-btn btn-primary ">{{'edit'|translate}}</a> -->
                    </td>
                </tr>
            </tbody>
        </table>
        <pager page-no="{{pageNo}}" page-size="page_Size " total="total_count " get-data="getlist(pageNo) "></pager>
    </div>
    <!--  // ref_date    时间： 如： "20170313"
        // session_cnt  打开次数
        // visit_pv 访问次数
        // visit_uv 访问人数
        // visit_uv_new 新用户数
        // stay_time_uv 人均停留时长 (浮点型，单位：秒)
        // stay_time_session    次均停留时长 (浮点型，单位：秒)
        // visit_depth  平均访问深度 (浮点型) -->
    <div ng-show = "chosedType == 'wxapp'"> 
        <table class="sui-table table-bordered" >
        <thead>
            <tr>
                <th>{{'wppid'|translate}}</th>
                <th>{{'小程序名称'|translate}}</th>
                <th>{{'打开次数'|translate}}</th>
                <th>{{'访问次数'|translate}}</th>
                <th>{{'访问人数'|translate}}</th>
                <th>{{'新用户数'|translate}}</th>
                <th>{{'人均停留时长'|translate}}</th>
                <th>{{'次均停留时长'|translate}}</th>
                <th>{{'平均访问深度'|translate}}</th>
                <th>{{'时间：'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in paymentlist">
                <td>{{list.app_id}} </td>
                <td><wxappinfo ng-model="list.app_id"></wxappinfo> </td>
                <td>{{list.session_cnt}}</td>
                <td>{{list.visit_pv}}</td>
                <td>{{list.visit_uv}}</td>
                <td>{{list.visit_uv_new}}</td>
                <td>{{list.stay_time_uv}}</td>
                <td>{{list.stay_time_session}}</td>
                <td>{{list.visit_depth}}</td>
                <td>
                  {{list.ref_date}}
                </td>
            </tr>
        </tbody>
        </table>
        <!-- 分页start -->
        <pager page-no="{{pageNo}}" page-size="page_Size " total="total_count " get-data="getlist(pageNo) "></pager>
        <!-- 分页end -->
    </div>
    
</div>